package com.yida.gwj.vote.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yida.common.core.annotation.Excel;
import com.yida.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * @author lqq
 * @date 2023-03-10
 */
@ApiModel("投票的业主列表对象实体")
public class GwjVoteResult extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("投票结果ID")
	private Long resultId;

	@ApiModelProperty("小区ID")
	private Long communityId;

	@ApiModelProperty("房屋标识码")
	@Excel(name = "房屋标识码")
	private String houseCode;

	@ApiModelProperty("业主名称")
	@Excel(name = "业主名称")
	private String ownerName;

	@ApiModelProperty("证件号码")
	@Excel(name = "证件号码")
	private String cardNum;

	@ApiModelProperty("业主手机号码")
	@Excel(name = "业主手机号码")
	private String ownerPhone;

	@ApiModelProperty("投票类型：0未投票、1网页投票、2短信投票、3公众号投票、4入户投票")
	private String voteType;

	@ApiModelProperty("投票时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date voteTime;

	@ApiModelProperty("投票项目ID")
	private Long voteId;

	@ApiModelProperty("投票结果json")
	private String resultJson;

	@ApiModelProperty("地区ID")
	private Long areaId;

	@ApiModelProperty("街道ID")
	private Long streetId;

	@ApiModelProperty("是否浏览过：0否、1是")
	private String browseFlag;

	public String getBrowseFlag() {
		return browseFlag;
	}

	public void setBrowseFlag(String browseFlag) {
		this.browseFlag = browseFlag;
	}

	public Long getAreaId() {
		return areaId;
	}

	public void setAreaId(Long areaId) {
		this.areaId = areaId;
	}

	public Long getStreetId() {
		return streetId;
	}

	public void setStreetId(Long streetId) {
		this.streetId = streetId;
	}

	public String getCardNum() {
		return cardNum;
	}

	public void setCardNum(String cardNum) {
		this.cardNum = cardNum;
	}

	public String getHouseCode() {
		return houseCode;
	}

	public void setHouseCode(String houseCode) {
		this.houseCode = houseCode;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerPhone(String ownerPhone) {
		this.ownerPhone = ownerPhone;
	}

	public String getOwnerPhone() {
		return ownerPhone;
	}

	public Long getResultId() {
		return resultId;
	}

	public void setResultId(Long resultId) {
		this.resultId = resultId;
	}

	public Long getCommunityId() {
		return communityId;
	}

	public void setCommunityId(Long communityId) {
		this.communityId = communityId;
	}

	public String getVoteType() {
		return voteType;
	}

	public void setVoteType(String voteType) {
		this.voteType = voteType;
	}

	public Date getVoteTime() {
		return voteTime;
	}

	public void setVoteTime(Date voteTime) {
		this.voteTime = voteTime;
	}

	public Long getVoteId() {
		return voteId;
	}

	public void setVoteId(Long voteId) {
		this.voteId = voteId;
	}

	public String getResultJson() {
		return resultJson;
	}

	public void setResultJson(String resultJson) {
		this.resultJson = resultJson;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("VoteResult{");
		sb.append("resultId=").append(resultId);
		sb.append(", communityId=").append(communityId);
		sb.append(", houseCode=").append(houseCode);
		sb.append(", ownerName='").append(ownerName).append('\'');
		sb.append(", cardNum='").append(cardNum).append('\'');
		sb.append(", ownerPhone='").append(ownerPhone).append('\'');
		sb.append(", voteType='").append(voteType).append('\'');
		sb.append(", voteTime=").append(voteTime);
		sb.append(", voteId=").append(voteId);
		sb.append(", resultJson='").append(resultJson).append('\'');
		sb.append(", areaId=").append(areaId);
		sb.append(", streetId=").append(streetId);
		sb.append('}');
		return sb.toString();
	}
}
